﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>


<%
    if (BizCollegeWebApp.Models.SecurityManager.IsAuthenticated) {
%>
        <!--Welcome <strong><%: Page.User.Identity.Name %></strong>!-->
        Welcome <strong><%: (Session["user"] as BizCollegeWebApp.Models.User).Username %></strong>!     
        
        [ <%: Html.ActionLink("Log Off", "LogOut", "Account")%> ]
<%
    }
    else {
%> 
        [ <%: Html.ActionLink("Login", "LogOn", "Account") %> ]
        [ <%: Html.ActionLink("Register", "Register", "User") %> ]

<%
    }
%>
